<template>
  <div class="new">
      <div class="all">
          <span>01/</span>
          大家都在看
      </div>
      <div class="list-new" v-for="(v) in this.$store.state.arr2.new" :key="v.id">
          <h1>{{v.title}}</h1>
          <div class="list-new-li" @click="newList(v.id)">
              <div class="left">
                  <div class="logo">攻略</div>
                  <img :src="v.img" alt="">
                  <span>查看相关攻略的介绍</span>
              </div>
              <div class="right">
                  <h2>{{v.titleList}}</h2>
                  <span>{{v.read}}</span> <b>阅读</b>&nbsp;&nbsp;&nbsp;
                  <span>{{v.shou}}</span> <b>收藏</b>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    methods:{
        newList(id){
            this.$router.push({name:"NewList",query:{idd:id}});
        }
    }
}
</script>

<style scoped>
    .all{
        width: 80%;
        color: #111;
        font-size: 0.5rem;
        font-weight: normal;
        margin-top: 0.3rem;
        margin-left: 0.6rem;
    }
    .all span{
        font-weight: bold;
        font-size: 0.4rem;
    }
    .list-new{
        box-sizing: border-box;
        padding: 0.2rem 0.6rem;
        color: #ff9d00;
    }
    .list-new h1{
        font-size: 0.48rem;
    }
    .list-new-li{
        box-shadow: 0 0 0 #EBEBEB inset, 0 0 10px 0 #EBEBEB, 0 0 10px #EBEBEB;
        padding:0.48rem;
        margin-top: 0.28rem;
        height: auto;
        display: flex;
        margin-bottom: 0.3rem;
    }
    .list-new-li .left{
        width: 35%;
        position: relative;
    }
    .list-new-li .left img{
        width: 100%;
        height: 1.56rem;
        margin-bottom: 0.05rem;
    }
    .list-new-li .left span{
        font-size: 0.25rem;
        color: #111;
    }
    .list-new-li .left .logo{
        position: absolute;
        top: 0;
        left: 0;
        width: 0.7rem;
        height: 0.35rem;
        background-color: #FFD94A;
        border-radius: 0 0 0.25rem 0;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        font-size: 0.25rem;
        color: #111;
    }
    .list-new-li .right{
        width: 65%;
        margin-left: 0.2rem;
    }
    .list-new-li .right h2{
        font-size: 0.4rem;
        color: #111;
        margin-bottom: 0.25rem;
    }
    b{
        color: #444343;
    }
</style>